//
// Created by castle on 2020/11/25.
//
#include "Platform.h"
#include <cstdarg>

void pLib::console::WriteLine(const char *format, ...)
{
    va_list args;
    va_start(args, format);
    vfprintf(stdout, format, args);
    va_end(args);
    fprintf(stdout, "\n");
}

void pLib::console::WriteLine()
{
    fprintf(stdout, "\n");
}
void pLib::console::Write(const char* format, ...)
{
    va_list args;
    va_start(args, format);
    vfprintf(stdout, format, args);
    va_end(args);
}

void pLib::console::WarnInfo(const char *format, ...)
{
    va_list args;
    va_start(args, format);
    vfprintf(stderr, format, args);
    va_end(args);
    fprintf(stderr, "\n");
}